<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>生产计划更新</title>
<script type="text/javascript">
	
</script>
<style type="text/css">
	div{margin:0px auto;width:500px;
	padding:0px 20px;font-size:20px;
	}
	body{background-color:#CCC;
	}
	input,select,textarea{font-size:18px;width:250px}
	.butt{width:100px;height:40px;}
	.butt:hover{background-color:#F96;cursor:pointer}
</style>

</head>

<body>
<div >
<h1 align="center">添加控制计划</h1>
	<form action="<%=request.getContextPath() %>/plan/update" method="post" onsubmit="check()">
	<input type="text" value="${plan.id }" name="id" hidden="hidden"/>
	<table align="center" height="450px">
		<tr>
			<td align="right">计划ID：</td>
			<td><input type="text" readonly="readonly" value="${plan.no }" /></td>
		</tr><tr>
			<td align="right">计划名称：</td>
			<td><input type="text"  value="${plan.name }" name="name"/></td>
		</tr><tr>
			<td align="right">计划完成时间：</td>
			<td><input type="date" value="${plan.otime }" name="otime"/></td>
		</tr><tr>
			<td align="right">计划内容：</td>
			<td><textarea name="content"  rows="5" cols="46"/>${plan.content }</textarea></td>
		</tr><tr>
			<td align="right">计划制定人：</td>
			<td><input type="text"  value="${plan.maker }" name="maker"/></td>
		</tr><tr>
			<td align="right">计划状态：</td>
			<td><select name="statue">
				<option <c:if test="${plan.statue==1 }">selected="selected"</c:if>  value="1">未开始</option>
				<option <c:if test="${plan.statue==2 }">selected="selected"</c:if> value="2">正在进行</option>
				<option <c:if test="${plan.statue==3 }">selected="selected"</c:if> value="3">已经结束</option>
				
			</select></td>
		</tr><tr>
			<td align="right">计划制定时间：</td>
			
			<td><input type="date" value="${plan.mtime }" name="mtime"/></td>
		</tr><tr>
			<td align="right">总成本：</td>
			<td><input type="text"  value="${plan.money }" name="money"/></td>
		</tr>
		<tr>
			<td colspan="2" align="center">
			<input class="butt" type="button" onclick="javascript:history.go(-1)"  value="返回"/>&nbsp;&nbsp;
				<input class="butt" type="submit" value="更改"/>&nbsp;&nbsp;
				<input class="butt" type="reset" value="重置"/>
			</td>
		</tr>
	</table>
	</form>
	</div>
</body>
</html>